package com.github.soiff.shadow.plugin.executor;

import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * Created by Soiff on 2016/5/22.
 */
@Slf4j
public abstract class Executor<T> {
    public Executor() {
    }

    public abstract boolean detectType(Service var1);

    public abstract T exec(Service var1, Map<String, Object> var2);

    protected Object unwrapResponse(T result) {
        // TODO: add proper unwrap logical.
        return null;
    }
}
